const express = require("express")
const Ctrl = require("../controller/User")
const {validate} = require("express-validation")
const {registerValidation} = require("../schema/User")
const router = express.Router()

router.post('/login', validate(registerValidation), Ctrl.login)

router.post('/register', validate(registerValidation), Ctrl.register)


module.exports = router